import App from "../App";
import Login from "../views/Login";
import Face from "../views/Face.jsx";
import Login_phone from "../views/Login_phone.jsx"
import Registor from "../views/Registor";
import { Navigate } from "react-router-dom"
import Shouye from '../components/Shouye'
import Index from "../views/Index";
import Hotel from "../views/Hotel.jsx";
import Travel from "../views/Travel";
import Mine from "../views/Mine";
import Tonggao from "../views/Tonggao.jsx";
import Tou from "../views/Tou.jsx";
import ScenicSpot from "../views/ScenicSpot.jsx";
import JingquXQ from "../views/JingquXQ.jsx";
import Yuding from "../views/Yuding.jsx";
import AddTravel from "../views/addTravel.jsx";
import Looklist from "../views/Looklist.jsx";
import Set from "../views/Set.jsx";
import Video from "../views/Video.jsx";
export default [
    {
        path: "/",
        element: <Navigate to="/app/login"></Navigate>
    },
    {
        path: "/app",
        element: <App />,
        children: [
            { path: "login", element: <Login /> },
            { path: "login_p", element: <Login_phone /> },
            { path: "face", element: < Face/> },
            { path: "register", element: <Registor /> },
            {
                path:"jingquxiangqing",
                element:<JingquXQ/>
            },{
                path:"yuding",
                element:<Yuding/>
            }
           
        ]
    },
    {path:"/shou", element:<Shouye></Shouye>,
        children:[
            {path:"index",element:<Index/>},
            // {path:"",element:<Hotel/>},
            {path:"travel",element:<Travel/>},
            {path:"mine",element:<Mine/>},
            {path:"tonggao",element:<Tonggao/>},
            {path:"addtravel",element:<AddTravel/>},
            {path:"looklist",element:<Looklist/>},
            {
                path:'scenicSpot',
                element:<ScenicSpot/>
            },
        ]
    },
    {
        path:"/set",
        element:<Set/>
    },{
        path:"/video",
        element:<video/>
    }
]